﻿<UserControl x:Class="EpicLeadManager.Views.Main.GroupsListControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:uc="clr-namespace:EpicLeadManager"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="34"/>
            <RowDefinition Height="1*"/>
        </Grid.RowDefinitions>
        <ListBox x:Name="GroupsListBox"
                 HorizontalAlignment="Stretch"
                 VerticalAlignment="Stretch"
                 Foreground="Transparent"
                 BorderBrush="Red" Grid.Row="1" Grid.ColumnSpan="2">

            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <uc:PlayersGroupControl Margin="4" />
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>


        </ListBox>
        <Button Grid.Row="0" Grid.Column="0" x:Name="AddGroupButton" Content="Ajouter un groupe" Click="AddGroupButton_OnClick"/>
        <Button Grid.Row="0" Grid.Column="1" x:Name="DeleteGroupButton" Content="Supprimer un groupe" Click="DeleteGroupButton_OnClick"/>
      
    </Grid>
</UserControl>